package com.example.demo.util.converters.impl;

import com.example.demo.util.converters.MyConverter;
import org.springframework.stereotype.Service;

import java.lang.reflect.Field;

/**
 * @author 陈浩
 * @date 2021/1/9 15:10
 */
public class BooleanConverter implements MyConverter<Boolean> {
    @Override
    public Boolean convertToJavaData(String value, Field declaredField) {
        return Boolean.valueOf(value);
    }

}
